package com.njuse.jvmfinal.runtimestructure;

import com.njuse.jvmfinal.memory.jclass.Method;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Jframe {

	private Jthread mythread;
	private Method mymethod;
	private Object[] local;
	private Object[] managestack;
	private int stacktop=0;
	private int maxstack;
	private int maxlocal;
	private int pc;
	
	public Jframe(Jthread thread,Method method,int maxmanage,int maxLocal) {
		this.mythread=thread;
		this.mymethod=method;
		local=new Object[maxLocal];
		managestack=new Object[maxmanage];
		this.maxstack=maxmanage;
		this.maxlocal=maxLocal;
		this.pc=0;
	}
}
